import request from '@/utils/request'

export const getDepartment = () => request.get('/company/department')

// 删除
export const delDepartment = (id) => request.delete(`/company/department/${id}`)

// 新增
export const addDepartment = (data) => request.post('/company/department', data)

// 更新
export const updateDepartment = (data) => request.put(`/company/department/${data.id}`, data)
